﻿<phone:PhoneApplicationPage
    x:Class="Social_Celebrities.Views.AddCast"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="80"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" 
                    Grid.Row="0" 
                    Margin="10,10,0,28" 
                    Orientation="Horizontal">
            <Image Style="{StaticResource DetailPagePivotTitleImage}" 
                   x:Name="imgTitle" 
                   MouseLeftButtonDown="imgTitle_MouseEnter"/>
            <TextBlock x:Name="tblkVideosTitle" 
                       Text="ADD CELEBRITY" 
                       Style="{StaticResource DetailPagePivotTitle}" />
        </StackPanel>
        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>               
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="80"/>
            </Grid.RowDefinitions>
            
            <StackPanel Orientation="Vertical" Grid.Row="0" Margin="0,18,0,0">
                <StackPanel Orientation="Horizontal">
                    <TextBlock  
                        Text="Celebrity Name" 
                        Margin="15,-25,0,0" 
                        FontSize="25"/>
                    <TextBlock 
                        x:Name="valid"                        
                        Text="Required" 
                        FontSize="16"                        
                        Foreground="Red" 
                        Margin="10,-3,0,0" 
                        Visibility="Collapsed"/>                                     	
                </StackPanel>
                <TextBox x:Name="TbCelebrity" 
                         TextChanged="TbCelebrity_TextChanged">
                </TextBox>               
            </StackPanel>            
            <StackPanel Grid.Row="1" 
                        Orientation="Vertical" 
                        Width="457" 
                        Margin="0,15,0,0">
                <StackPanel Orientation="Horizontal">
                    <TextBlock 
                        Text="Setup Facebook" 
                        FontSize="25" 
                        Margin="15,10,0,0"/>                    
                    
                    <Image Source="/Images/feature.settings.png" 
                           Margin="75,0,0,0" 
                           Height="65" 
                           Width="65"
                           x:Name="FacebookImage"
                           
                           MouseLeftButtonDown="FacebookImage_MouseLeftButtonDown"/>
                    <Image Source="/Images/help.png" 
                           Height="50" 
                           Width="50"
                           Margin="40,0,0,0"
                           HorizontalAlignment="Right" 
                           VerticalAlignment="Center" 
                           MouseLeftButtonDown="Image_MouseLeftButtonDown_1"
                           />
                </StackPanel>
                <StackPanel Orientation="Horizontal" Width="450">                   
                    <TextBlock 
                        x:Name="TbFacebookID" 
                        FontSize="18" 
                        TextTrimming="WordEllipsis"                        
                        Width="450"                        
                        Margin="15,-2,0,0"                        
                        FontWeight="Light"
                        />
                   
                </StackPanel>
                <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
                    <TextBlock 
                        Text="Setup Twitter" 
                        FontSize="25" 
                        Margin="15,10,0,0"/>
                    
                    <Image Source="/Images/feature.settings.png" 
                           Margin="105,0,0,0" 
                           Height="65" 
                           Width="65"
                           x:Name="TwitterImage" 
                           MouseLeftButtonDown="TwitterImage_MouseLeftButtonDown"/>
                    
                    <Image Source="/Images/help.png" 
                           Height="50" 
                           Width="50"
                           Margin="40,0,0,0"
                           HorizontalAlignment="Right" 
                           VerticalAlignment="Center" 
                           MouseLeftButtonDown="Image_MouseLeftButtonDown_2"
                           />
                </StackPanel>
                <StackPanel Orientation="Horizontal" Width="450">
                    <TextBlock 
                        x:Name="TbTwitterID" 
                        FontSize="18" 
                        TextTrimming="WordEllipsis" 
                        Width="450" 
                        Margin="15,-2,0,0"                        
                        FontWeight="Light"
                        />

                </StackPanel>
                <StackPanel 
                    Orientation="Horizontal" 
                    Margin="0,0,0,0">
                    <TextBlock  
                        Text="Setup Blog" 
                        FontSize="25" 
                        Margin="15,10,0,0"/>
                    
                    <Image Source="/Images/feature.settings.png" 
                           Margin="128,0,0,0" 
                           Height="65" 
                           Width="65"
                           x:Name="BloggerImage" 
                           MouseLeftButtonDown="BloggerImage_MouseLeftButtonDown" />
                    
                    <Image Source="/Images/help.png" 
                           Height="50" 
                           Width="50"
                           Margin="40,0,0,0"
                           HorizontalAlignment="Right" 
                           VerticalAlignment="Center" 
                           MouseLeftButtonDown="Image_MouseLeftButtonDown_3"
                           />
                </StackPanel>
                <StackPanel Orientation="Horizontal" Width="450">
                    <TextBlock 
                        x:Name="TbBloggerID" 
                        FontSize="18" 
                        TextTrimming="WordEllipsis" 
                        Width="450" 
                        Margin="15,-2,0,0"                        
                        FontWeight="Light"
                        />

                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" 
                        Grid.Row="2" 
                        Margin="0,15,0,0">
                <StackPanel 
                    x:Name="persononlocalstk" Height="185" 
                    Orientation="Vertical" Margin="30,0,0,0">
                    <TextBlock 
                        Text="Local Image" 
                        Margin="15,20,0,0" 
                        FontSize="25"/>
                    <Image Source="/Images/peoplefromlocal.png" 
                           x:Name="personlocalimg" 
                           Height="110" 
                           Margin="0,5,0,0" 
                           Width="120" 
                           MouseLeftButtonDown="personlocalimg_MouseLeftButtonDown_1"/>
                </StackPanel>
                <StackPanel 
                    x:Name="persononlinestk" 
                    Orientation="Vertical" 
                    Margin="80,0,0,0"
                    Height="185">
                    <TextBlock 
                        Text="Online Image" 
                        Margin="15,20,0,0" 
                        FontSize="25"/>
                    <Image Source="/Images/peoplefromonline.png" 
                           x:Name="persononlineimg" 
                           Height="110" 
                           Margin="0,5,0,0" 
                           Width="120" 
                           Visibility="Visible"
                           MouseLeftButtonDown="persononlineimg_MouseLeftButtonDown_1"/>
                </StackPanel>
            </StackPanel>            
        </Grid>
        <StackPanel 
            x:Name="AddcastAd" 
            Grid.Row="2" 
            Orientation="Vertical" 
            Margin="0,0,0,0"/>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">
            <shell:ApplicationBarIconButton 
                x:Name="btnsave" 
                IconUri="/Images/PlayerImages/save.png" 
                Text="Save" 
                Click="btnsave_Click_1"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>